﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Include/Admin.master" AutoEventWireup="true"
    CodeFile="Manage.aspx.cs" Inherits="Admin_GZ_Manage" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../../Style/Common/DatePage.css" rel="stylesheet" type="text/css" />
    <link href="../../Scripts/jquery-easyui-1.3.1/themes/default/easyui.css" rel="stylesheet"
        type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table cellspacing="0" cellpadding="0" style="width: 100%; height: 30px; padding-bottom: 5px;
        border: 1px; border-color: #66CCFF;">
        <tr style="background-image: url('../../images/管理员页面/title_bg1.jpg'); background-repeat: repeat-x;">
            <td style="font-weight: bold; font-size: large; font-family: 仿宋;">
                <strong>【关注信息管理】</strong>
            </td>
        </tr>
    </table>
    <table class="editTable" cellspacing="1">
        <tr>
            <th>
                关注用户
            </th>
            <td>
                <asp:TextBox ID="txtGzUserID" runat="server" />
                <img alt='查询' class="SearchUser1"
                    src="../../images/管理员页面/search.png" /><img id="Clear_txtGzUserID" alt='清空' src="../../images/管理员页面/clear.gif" />
            </td>
            <th>
                添加时间
            </th>
            <td colspan="2">
                从：<asp:TextBox ID="txtAddTimeFrom" runat="server" class="easyui-datetimebox"></asp:TextBox>到：<asp:TextBox
                    ID="txtAddTimeTo" runat="server" class="easyui-datetimebox"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <th>
                被关注对象
            </th>
            <td>
                <asp:TextBox ID="txtBgzUserID" runat="server" />
                <img alt='查询' class="SearchUser2"
                    src="../../images/管理员页面/search.png" /><img id="Clear_txtBgzUserID" alt='清空' src="../../images/管理员页面/clear.gif" />
            </td>
            <th>
                关注类型
            </th>
            <td>
                <asp:DropDownList ID="drpGZLX" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" />
            </td>
        </tr>
    </table>
    <br />
    <asp:ListView ID="lvDate" runat="server" DataKeyNames="ID">
        <LayoutTemplate>
            <table class="editTable" width="100%" cellspacing="1">
                <tr>
                    <th>
                        关注类型
                    </th>
                    <th>
                        关注用户
                    </th>
                    <th>
                        被关注对象
                    </th>
                    <th>
                        关注说明
                    </th>
                    <th>
                        关注时间
                    </th>
                </tr>
                <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <%#Enum.GetName(typeof(GZ.typeGZ), Eval("Type"))%>
                </td>
                <td>
                    <%#GetUserName(Eval("AddUserID"))%>
                </td>
                <td>
                    <%#GetUserName(Eval("GZID"))%>
                </td>
                <td>
                    <%#Eval("Remark")%>
                </td>
                <td>
                    <%#DongDong.Common.Misc.ConvertToShortDateTime(Eval("AddTime"), "yyyy年MM月dd日")%>
                </td>
            </tr>
        </ItemTemplate>
        <EmptyDataTemplate>
            没有数据<br />
            <br />
        </EmptyDataTemplate>
    </asp:ListView>
    <div style="padding: 4px; text-align: center;">
        <asp:DataPager ID="Pager" runat="server" PagedControlID="lvDate" OnPreRender="Pager_PreRender"
            PageSize="20">
            <Fields>
                <asp:NumericPagerField ButtonCount="10" CurrentPageLabelCssClass="CurrentPage" NumericButtonCssClass="Page" />
                <asp:NextPreviousPagerField ShowLastPageButton="true" ShowPreviousPageButton="true"
                    ShowFirstPageButton="true" />
                <asp:TemplatePagerField>
                    <PagerTemplate>
                        共<%=Pager.TotalRowCount%>条
                    </PagerTemplate>
                </asp:TemplatePagerField>
            </Fields>
        </asp:DataPager>
    </div>
    <asp:HiddenField ID="hdlGzUserID" runat="server" />
    <asp:HiddenField ID="hdlBgzUserID" runat="server" />
    <script type="text/javascript">
        $(document).ready(function () {
            $(".SearchUser1").click(function () {
                OpenPage("../Client/Manage.aspx?IsOpen=1", "<%=hdlGzUserID.ClientID %>", "<%=txtGzUserID.ClientID %>");
            })
            $(".SearchUser2").click(function () {
                OpenPage("../Client/Manage.aspx?IsOpen=1", "<%=hdlBgzUserID.ClientID %>", "<%=txtBgzUserID.ClientID %>");
            })
            $("#Clear_txtGzUserID").click(function () {
                ClearText("<%=hdlGzUserID.ClientID %>", "<%=txtGzUserID.ClientID %>");
            })
            $("#Clear_txtBgzUserID").click(function () {
                ClearText("<%=hdlBgzUserID.ClientID %>", "<%=txtBgzUserID.ClientID %>");
            })
        })
    </script>
    <script src="../../Scripts/jquery-easyui-1.3.1/jquery.easyui.min.js" type="text/javascript"></script>
</asp:Content>
